<div style="background:#ffffff;">
<form accept-charset="UTF-8" action="<?= $this->escape($this->viewParams['form']->getAction()) ?>"
      method="<?= $this->escape($this->viewParams['form']->getMethod()) ?>">
<?if(isset($this->viewParams['successMessage'])) :?>
	<?=$this->viewParams['successMessage']?>
<?endif?>
<?if(isset($this->viewParams['errorMessage'])) :?>
	<?=$this->viewParams['errorMessage']?>
<?endif?>
<fieldset>      
    <legend>General Info</legend>
    <table>
    <tr>
      <td> Name</td> <td> <?=$this->viewParams['form']->name ?>  </td>
    </tr>
    <tr>
      <td> Keywords</td> <td> <?=$this->viewParams['form']->keywords ?>  </td>
    </tr>
    <tr>
      <td> Type</td> <td> <?=$this->viewParams['form']->type ?></td>
    </tr>
    <?if(isset($this->viewParams['form']->business_category)) :?>
    <tr>
      <td> Business Category</td> <td>  <?=$this->viewParams['form']->business_category ?></td> 
    </tr>
    <?endif?>
    <?if(isset($this->viewParams['form']->created_time)) :?>
    <tr>
      <td> Created Time</td> <td>  <?=$this->viewParams['form']->created_time ?></td> 
    </tr>
    <?endif?>
    <?if(isset($this->viewParams['form']->target_continent)) :?>
    <tr>
      <td> Target Continent</td> <td>  <?=$this->viewParams['form']->target_continent ?></td> 
    </tr>
    <?endif?>
    <?if(isset($this->viewParams['form']->target_country)) :?>
    <tr>
      <td> Target Country</td> <td>  <?=$this->viewParams['form']->target_country ?></td> 
    </tr>
    <?endif?>
    <tr>
      <td> Link</td> <td> <?=$this->viewParams['form']->link_to ?></td> 
    </tr>
    </table>

    <br/>
    <fieldset>
        <legend>Content</legend>
        You can request a module
        to generate content OR you can add a piece of HTML or PHP text to be displayed:
        <br/> <br/> 
        <table>
        <!--
        <tr> <td>Request (camel case like /user/block/logMeIn for logMeInAction())</td> 
         <td></?=$this->viewParams['form']->action_url ?> &nbsp;&nbsp;&nbsp;(e.g /user/block/login)</td>
        </tr>
        -->
        <tr><td>Or <?=$this->viewParams['form']->text_type ?> </td>
        <td><?=$this->viewParams['form']->text ?></td>
        </tr>
        </table>
     </fieldset>
</fieldset>
<br/><br/><br/>


<fieldset>
<legend>Permissions</legend>
    <table>
    <tr>
        <td>Configurable by user</td>
        <td><?=$this->viewParams['form']->user_configurable ?><br/><br/></td>
    </tr>

    <tr>
        <td>Shared users</td>
        <td><?= $this->viewParams['form']->owner ?><br/>("-1" for public)<br/><br/></td>
    </tr>
        
    <tr>
        <td>Applicable languages</td>
        <td><?=$this->viewParams['form']->languages ?><br/><br/></td>
    </tr>    

    <tr>        
        <td>Applicable themes</td>
        <td><?=$this->viewParams['form']->themes ?><br/><br/></td>
    </tr>
        
    <tr>
        <td>Applicable user roles:</td>
        <td><?=$this->viewParams['form']->roles ?><br/><br/></td>
    </tr>
    
    <tr>
        <td>Applicable modules:</td>
        <td><?= $this->viewParams['form']->modules ?><br/>(<b>todo</b>: Fine-grain it to Per action)<br/><br/></td>
    </tr>
    </table>
</fieldset>


<br/><br/><br/>
<fieldset>
<legend>Positions</legend>
<!--Set the position for each template by the following format: <b>{prime:common:region:weight}</b>,-->
If not specified, it will not be displayed 
<table>
	<tr>
		<!--<td class="themes">Themes: <?=$this->viewParams['form']->themes ?></td>-->
		<td class="template">Template: <?=$this->viewParams['form']->template ?></td>
		<td class="region">Region: <?=$this->viewParams['form']->region ?></td>
		<td class="weight">Weight: <?=$this->viewParams['form']->weight ?></td>
	</tr>
</table>
</fieldset>
<?=$this->viewParams['form']->submit ?>
<input type="hidden" name="id" value="<?if(isset($this->viewParams['id'])) :?><?=$this->viewParams['id'] ?>"<?endif?> />
</form>      
</div>
